import request from '@/utils/request'

// 查询视频主列表
export function listVideo(query) {
  return request({
    url: '/InfoPointVide/video/list',
    method: 'get',
    params: query
  })
}

// 查询视频主详细
export function getVideo(id) {
  return request({
    url: '/InfoPointVide/video/' + id,
    method: 'get'
  })
}

// 新增视频主
export function addVideo(data) {
  return request({
    url: '/InfoPointVide/video',
    method: 'post',
    data: data
  })
}

// 修改视频主
export function updateVideo(data) {
  return request({
    url: '/InfoPointVide/video',
    method: 'put',
    data: data
  })
}

// 删除视频主
export function delVideo(id) {
  return request({
    url: '/InfoPointVide/video/' + id,
    method: 'delete'
  })
}

export function getVideoTypeList(){
  return request({
    url:'/InfoPointVideoType/pointVideoType/list',
    method:'get',
  })
}